package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysUserWork;
import com.ruoyi.system.mapper.SysUserWorkMapper;
import com.ruoyi.system.service.SysUserWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 柳
 * @Date 2021/3/6
 * @Description TODO
 */
@Service
public class SysUserWorkServiceImpl implements SysUserWorkService {

    @Autowired
    private SysUserWorkMapper sysUserWorkMapper;

    /**
     * 根据评委id删除评委作品信息
     * @param user_id
     */
    @Override
    public void deleteSysUserWorkByUserId(long user_id) {
        sysUserWorkMapper.deleteSysUserWorkByUserId(user_id);
    }

    /**
     * 添加评委作品信息桥表
     * @param sysUserWork
     */
    @Override
    public void saveSysUserWork(SysUserWork sysUserWork) {
        sysUserWorkMapper.saveSysUserWork(sysUserWork);
    }
}
